{template 'header'}
<div class="m">
	<div class="nav">Current Location: <a href="{$MODULE[1][linkurl]}">Home</a> &raquo; <a href="{$MOD[linkurl]}">{$MOD[name]}</a> &raquo; <a href="{$linkurl}">{$item[title]}</a> &raquo; Quotation</div>
	<form method="post" action="{$MOD[linkurl]}price.php" id="dform" onsubmit="return check();">
	<input type="hidden" name="forward" value="{$forward}"/>
	<input type="hidden" name="itemid" value="{$itemid}"/>
	<table width="100%" cellpadding="8" cellspacing="1" bgcolor="#DDDDDD">
	
	<tr>
	<td bgcolor="#F7F7F7" align="right"><span class="f_red">*</span> Quote Theme</td>
	<td bgcolor="#FFFFFF"><input type="text" name="title" value="{$title}" size="60" id="title"/> <img src="{DT_SKIN}image/ico_tips.gif" alt="" title="We recommend that you modify the theme, to attract each other's attention, to get quick reply!"/> <span class="f_red" id="dtitle"></span></td>
	</tr>
	<tr>
	<td bgcolor="#F7F7F7" align="right">Quick question</td>
	<td bgcolor="#FFFFFF">
	<select onchange="if(this.value)Dd('content').value+=this.value+'\n';">
	<option value="">Please select FAQ</option>
	{loop $iask $v}
	<option value="{$v}">{$v}</option>
	{/loop}
	</select>
	<span class="f_gray">(No typing, "Quick question" Help you!) </span>
	</td>
	</tr>
	<tr>
	<td bgcolor="#F7F7F7" align="right"><span class="f_red">*</span> Main content</td>
	<td bgcolor="#FFFFFF">
	<textarea rows="8" cols="80" name="content" id="content"></textarea><br/>
	I hope {dcalendar('date', $date)} Recently Reply <span class="f_red" id="dcontent"></span>
	</td>
	</tr>
	{if $_userid}
	<tr>
	<td bgcolor="#F7F7F7" align="right"><strong>Contact</strong></td>
	<td bgcolor="#F7F7F7">&nbsp;</td>
	</tr>
	<tr>
	<td bgcolor="#F7F7F7" align="right">Company</td>
	<td bgcolor="#FFFFFF">{$company}</td>
	</tr>
	<tr>
	<td bgcolor="#F7F7F7" align="right">Name</td>
	<td bgcolor="#FFFFFF">{$truename}</td>
	</tr>
	<tr>
	<td bgcolor="#F7F7F7" align="right">phone</td>
	<td bgcolor="#FFFFFF">{$telephone}</td>
	</tr>
	<tr>
	<td bgcolor="#F7F7F7" align="right">E-Mail</td>
	<td bgcolor="#FFFFFF">{$email}</td>
	</tr>
	{if $DT[im_qq]}
	<tr>
	<td bgcolor="#F7F7F7" align="right">QQ</td>
	<td bgcolor="#FFFFFF">{$qq}</td>
	</tr>
	{/if} 
	{if $DT[im_ali]}
	<tr>	
	<td bgcolor="#F7F7F7" align="right">Ali</td>
	<td bgcolor="#FFFFFF">{$ali}</td>
	</tr>
	{/if}
	{if $DT[im_msn]}
	<tr>	
	<td bgcolor="#F7F7F7" align="right">MSN</td>
	<td bgcolor="#FFFFFF">{$msn}</td>
	</tr>
	{/if}
	{if $DT[im_skype]}
	<tr>	
	<td bgcolor="#F7F7F7" align="right">Skype</td>
	<td bgcolor="#FFFFFF">{$Skype}</td>
	</tr>
	{/if}
	{else}
	<tr>
	<td bgcolor="#F7F7F7" align="right"> <strong> Contact </ strong> </ td>
<td bgcolor="#F7F7F7"> Not a member? Please <a href="{$MODULE[2][linkurl]}{$DT[file_register]}" class="f_b" target="_top"> Register </ a> or leave your contact information already a member? Please <a href="{$MODULE[2][linkurl]}{$DT[file_login]}" class="f_b" target="_top"> login </a> </td>
	</tr>
	<tr>
	<td bgcolor="#F7F7F7" align="right">Company</td>
	<td bgcolor="#FFFFFF"><input type="text" name="company" size="30" id="company"/></td>
	</tr>
	<tr>
	<td bgcolor="#F7F7F7" align="right"><span class="f_red">*</span> Name</td>
	<td bgcolor="#FFFFFF"><input type="text" name="truename" size="30" id="truename"/> <span class="f_red" id="dtruename"></span></td>
	</tr>
	<tr>
	<td bgcolor="#F7F7F7" align="right"><span class="f_red">*</span> Phone</td>
	<td bgcolor="#FFFFFF"><input type="text" name="telephone" size="30" id="telephone"/> <span class="f_red" id="dtelephone"></span></td>
	</tr>
	<tr>
	<td bgcolor="#F7F7F7" align="right">E-mail</td>
	<td bgcolor="#FFFFFF"><input type="text" name="email" size="30" id="email"/> <span class="f_red" id="demail"></span></td>
	</tr>
	{if $DT[im_qq]}
	<tr>
	<td bgcolor="#F7F7F7" align="right">QQ</td>
	<td bgcolor="#FFFFFF"><input type="text" size="20" name="qq" id="qq"/></td>
	</tr>
	{/if}
	{if $DT[im_ali]}
	<tr>
	<td bgcolor="#F7F7F7" align="right">Ali</td>
	<td bgcolor="#FFFFFF"><input type="text" size="20" name="ali" id="ali"/></td>
	</tr>
	{/if}
	{if $DT[im_msn]}
	<tr>
	<td bgcolor="#F7F7F7" align="right">MSN</td>
	<td bgcolor="#FFFFFF"><input type="text" size="30" name="msn" id="msn"/></td>
	</tr>
	{/if}
	{if $DT[im_skype]}
	<tr>
	<td bgcolor="#F7F7F7" align="right">Skype</td>
	<td bgcolor="#FFFFFF"><input type="text" size="20" name="skype" id="skype"/></td>
	</tr>
	{/if}
	{/if}
	{if $need_question}
	<tr>
	<td bgcolor="#F7F7F7" align="right"><span class="f_red">*</span> Authentication Issues</td>
	<td bgcolor="#FFFFFF">{template 'question', 'chip'} <span id="danswer" class="f_red"></span></td>
	</tr>
	{/if}
	{if $need_captcha}
	<tr>
	<td bgcolor="#F7F7F7" align="right"><span class="f_red">*</span> Verification code</td>
	<td bgcolor="#FFFFFF">{template 'captcha', 'chip'} <span id="dcaptcha" class="f_red"></span></td>
	</tr>
	{/if}
	{if $_userid && $DT[sms]}
	<tr>
	<td bgcolor="#F7F7F7" align="right">SMS notification</td>
	<td bgcolor="#FFFFFF"> <input type="checkbox" name="sendsms" value="1"/> send SMS notification to the recipient phone (<a href = "{$ MODULE [2] [linkurl] } sms.php "target =" _blank "> I used SMS <strong class="f_blue"> {$ _sms} </ strong> article </a>) </td>
	</tr>
	{/if}
	<tr>
	<td bgcolor="#F7F7F7"></td>
	<td bgcolor="#FFFFFF">
	<input type="submit" name="submit" value=" Send "/>

	{if $ MG [price_limit]}
	Today may offer <span class="f_b f_red"> {$ MG [price_limit]} </ span> times
	currently offer <span class="f_b"> {$ limit_used} </ span> times
	You can also offer <span class="f_b f_blue"> {$ limit_free} </ span> times
	{/ if}
		
	</td>
	</tr>
	</table>
	</form>	
</div>
{if !$_userid}<script type="text/javascript" src="{DT_STATIC}file/script/guest.js"></script>{/if}
<script type="text/javascript">
function check () {
	var l;
	var f;
	f = 'title';
	l = Dd (f). value.length;
	if (l <5 | | l> 50) {
	Dmsg ('theme should be 5-50 characters, currently has the input' + l + 'word', f);
	return false;
	}
	f = 'content';
	l = Dd (f). value.length;
	if (l <10 | | l> 2000) {
	Dmsg ('content should 10-2000 word, the current has been entered' + l + 'word', f);
	return false;
	}
	{if! $ _userid}
	f = 'truename';
	l = Dd (f). value.length;
	if (l <2) {
	Dmsg ('Please fill in the contact', f);
	return false;
	}
	f = 'telephone';
	l = Dd (f). value.length;
	if (l <7) {
	Dmsg ('Please fill in contact phone', f);
	return false;
	}
	{/ if}
	{if $ need_captcha}
	f = 'captcha';
	l = Dd (f). value;
	if (! is_captcha (l)) {
	Dmsg ('Please fill in the correct code', f);
	return false;
	}
	if (Dd ('c' + f). innerHTML.indexOf ('error')! = -1) {
	Dd (f). Focus ();
	return false;
	}
	{/ if}
	{if $ need_question}
	f = 'answer';
	l = Dd (f). value.length;
	if (l <1) {
	Dmsg ('Please enter the verification problem', f);
	return false;
	}
	if (Dd ('c' + f). innerHTML.indexOf ('error')! = -1) {
	Dd (f). Focus ();
	return false;
	}
	{/ if}
}
</script>
{template 'footer'}